package com.cloud.api.domain.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.core.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author haohaibo
 * @since 2024-07-08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_user_info")
@Schema(name = "UserInfo", description = "用户信息表")
public class UserInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    @TableId("user_id")
    private String userId;

    @Schema(description = "手机号")
    @TableField("mobile")
    private String mobile;

    @Schema(description = "昵称")
    @TableField("nick_name")
    private String nickName;

    @Schema(description = "头像")
    @TableField("avatar")
    private String avatar;

    @Schema(description = "会员等级")
    @TableField("vip_level")
    private Integer vipLevel;

    @Schema(description = "会员积分")
    @TableField("vip_score")
    private Integer vipScore;

    @Schema(description = "是否绑定拖挂车")
    @TableField("bind_trailer")
    private Boolean bindTrailer;

    @Schema(description = "是否绑定越野车")
    @TableField("bind_off_roadCar")
    private Boolean bindOffRoadCar;

    @Schema(description = "车主信息是否完善")
    @TableField("complete")
    private Boolean complete;

    @Schema(description = "是否可以发文章")
    @TableField("flag")
    private Boolean flag;

}
